﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:userControls="clr-namespace:HP.Cachalote.WPF.UserControls">
    <Style x:Key="TextBlcokBase" TargetType="{x:Type TextBlock}">
        <Setter Property="FontFamily" Value="Segoe UI" />
    </Style>
    <Style TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlcokBase}" />
    <Style x:Key="ListTitleTextBlock" TargetType="{x:Type TextBlock}">
        <Setter Property="FontSize" Value="15" />
    </Style>
    <Style x:Key="TodoLabelTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlcokBase}">
        <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter Property="Foreground" Value="#9ac8ff" />
                <Setter Property="FontWeight" Value="Bold" />
            </Trigger>
        </Style.Triggers>
        <Setter Property="FontSize" Value="15" />
    </Style>
    <Style x:Key="TodoItemCountTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlcokBase}">
        <Setter Property="Foreground" Value="Red" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="FontWeight" Value="Bold" />
        <Setter Property="Padding" Value="6,0,0,0" />
        <Style.Triggers>
            <DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Text}" Value="0">
                <Setter Property="Opacity" Value="0" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
    <Style x:Key="TodoItemTitleTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlcokBase}">
        <Setter Property="FontSize" Value="18" />
        <Setter Property="TextTrimming" Value="CharacterEllipsis" />
        <Setter Property="TextWrapping" Value="NoWrap" />
    </Style>
    <Style x:Key="FinishedTodoItemTitleTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TodoItemTitleTextBlock}">
        <Setter Property="Foreground" Value="DarkGray" />
        <Setter Property="TextDecorations" Value="Strikethrough" />
        <Setter Property="ToolTip">
            <Setter.Value>
                <userControls:TodoItemToolTipUserControl />
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="ItemInfoSummaryTextBlock" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource TextBlcokBase}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding ElementName=TreeViewTodoItems, Path=Items.Count}" Value="0">
                <Setter Property="FontStyle" Value="Italic" />
                <Setter Property="Foreground" Value="DarkGray" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
</ResourceDictionary>